<?php
class Merchant_Service_OrderShip
{
	public static $orderStatus =array(
	    0 => 'Delete', 
	    1 => 'Draft',
        2 => 'Confirm', 
        3 => 'Insufficient', 	//缺货
        4 => 'Processing', 		//待发货
        5 => 'Shipped',			//已发货
        6 => 'Delivered',		//已完成
	);
	public static $operationArr =array(
	    0 => array(1 => 'To draft'), 
	    1 => array(0 => 'To delete', 2 => 'Confirm'),
        2 => array(0 => 'To delete', 1 => 'To draft', 4 => 'Submit'), 
        3 => array(0 => 'To delete', 1 => 'To draft', 4 => 'Submit'), 
	);
	public static $abnormalText =array( 
		0 => '无异常',
	    1 => 'Out of stock',//库存不足
        2 => 'Insufficient funds', //余额不足
	);
	 


	public static function getByValue($value,$field='orders_code'){
        $Obj = new Merchant_Model_OrderShip();
        return $Obj->getByValue($value,$field);
	}
 
	
	/**
	 *
	 */
	public static function updateByOrdersCode($row,$ordersCode)
	{
		$obj=new Merchant_Model_OrderShip();
		return $obj->updateByOrdersCode($row,$ordersCode);
	}
	
}